<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 5.4.2">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"wrr123.github.io","root":"/","scheme":"Muse","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":true,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},"path":"search.json"};
  </script>

  <meta name="description" content="常见的执行 Linux 命令的格式是这样的: 1“ 命令名称 [命令参数] [命令对象] 注意，命令名称、命令参数、命令对象之间请用空格键分隔。 命令对象一般是指要处理的文件、目录、用户等资源，而命令参数可以用长格式（完整的选项名称），也可以用短格式（单个字母的缩写），两者分别用 -- 与 - 作为前缀。 命令参数的长格式和短格式示例：      示例     长格式 man --help   短">
<meta property="og:type" content="article">
<meta property="og:title" content="linux入门命令">
<meta property="og:url" content="https://wrr123.github.io/2021/01/28/linux%E5%85%A5%E9%97%A8%E5%91%BD%E4%BB%A4/index.html">
<meta property="og:site_name" content="一缕烟气">
<meta property="og:description" content="常见的执行 Linux 命令的格式是这样的: 1“ 命令名称 [命令参数] [命令对象] 注意，命令名称、命令参数、命令对象之间请用空格键分隔。 命令对象一般是指要处理的文件、目录、用户等资源，而命令参数可以用长格式（完整的选项名称），也可以用短格式（单个字母的缩写），两者分别用 -- 与 - 作为前缀。 命令参数的长格式和短格式示例：      示例     长格式 man --help   短">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="http://localhost:4000/2021/01/28/linux%E5%85%A5%E9%97%A8%E5%91%BD%E4%BB%A4/001.png">
<meta property="article:published_time" content="2021-01-28T03:27:49.000Z">
<meta property="article:modified_time" content="2022-02-18T02:52:04.470Z">
<meta property="article:author" content="田园隐士">
<meta property="article:tag" content="linux">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="http://localhost:4000/2021/01/28/linux%E5%85%A5%E9%97%A8%E5%91%BD%E4%BB%A4/001.png">

<link rel="canonical" href="https://wrr123.github.io/2021/01/28/linux%E5%85%A5%E9%97%A8%E5%91%BD%E4%BB%A4/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-CN'
  };
</script>

  <title>linux入门命令 | 一缕烟气</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

<link rel="alternate" href="/atom.xml" title="一缕烟气" type="application/atom+xml">
</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">一缕烟气</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
      <p class="site-subtitle" itemprop="description">沧海月明珠有泪，蓝田日暖玉生烟</p>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
        <i class="fa fa-search fa-fw fa-lg"></i>
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="main-menu menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档</a>

  </li>
      <li class="menu-item menu-item-search">
        <a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索
        </a>
      </li>
  </ul>
</nav>



  <div class="search-pop-overlay">
    <div class="popup search-popup">
        <div class="search-header">
  <span class="search-icon">
    <i class="fa fa-search"></i>
  </span>
  <div class="search-input-container">
    <input autocomplete="off" autocapitalize="off"
           placeholder="搜索..." spellcheck="false"
           type="search" class="search-input">
  </div>
  <span class="popup-btn-close">
    <i class="fa fa-times-circle"></i>
  </span>
</div>
<div id="search-result">
  <div id="no-result">
    <i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i>
  </div>
</div>

    </div>
  </div>

</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post posts-expand">
            

    
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://wrr123.github.io/2021/01/28/linux%E5%85%A5%E9%97%A8%E5%91%BD%E4%BB%A4/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.gif">
      <meta itemprop="name" content="田园隐士">
      <meta itemprop="description" content="talk is cheap, show me the code">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="一缕烟气">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          linux入门命令
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2021-01-28 11:27:49" itemprop="dateCreated datePublished" datetime="2021-01-28T11:27:49+08:00">2021-01-28</time>
            </span>
              <span class="post-meta-item">
                <span class="post-meta-item-icon">
                  <i class="far fa-calendar-check"></i>
                </span>
                <span class="post-meta-item-text">更新于</span>
                <time title="修改时间：2022-02-18 10:52:04" itemprop="dateModified" datetime="2022-02-18T10:52:04+08:00">2022-02-18</time>
              </span>

          
            <span class="post-meta-item" title="阅读次数" id="busuanzi_container_page_pv" style="display: none;">
              <span class="post-meta-item-icon">
                <i class="fa fa-eye"></i>
              </span>
              <span class="post-meta-item-text">阅读次数：</span>
              <span id="busuanzi_value_page_pv"></span>
            </span><br>
            <span class="post-meta-item" title="本文字数">
              <span class="post-meta-item-icon">
                <i class="far fa-file-word"></i>
              </span>
                <span class="post-meta-item-text">本文字数：</span>
              <span>2.4k</span>
            </span>
            <span class="post-meta-item" title="阅读时长">
              <span class="post-meta-item-icon">
                <i class="far fa-clock"></i>
              </span>
                <span class="post-meta-item-text">阅读时长 &asymp;</span>
              <span>2 分钟</span>
            </span>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <p>常见的执行 <code>Linux</code> 命令的格式是这样的:</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">“ 命令名称 [命令参数] [命令对象]</span><br></pre></td></tr></table></figure>
<p>注意，命令名称、命令参数、命令对象之间请用空格键分隔。</p>
<p>命令对象一般是指要处理的文件、目录、用户等资源，而命令参数可以用长格式（完整的选项名称），也可以用短格式（单个字母的缩写），两者分别用 <code>--</code> 与 <code>-</code> 作为前缀。</p>
<p>命令参数的长格式和短格式示例：</p>
<div class="table-container">
<table>
<thead>
<tr>
<th></th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>长格式</td>
<td><code>man --help</code></td>
</tr>
<tr>
<td>短格式</td>
<td><code>man -h</code></td>
</tr>
</tbody>
</table>
</div>
<span id="more"></span>
<h4 id="常用系统工作命令"><a href="#常用系统工作命令" class="headerlink" title="常用系统工作命令"></a>常用系统工作命令</h4><h5 id="echo-命令"><a href="#echo-命令" class="headerlink" title="echo 命令"></a><code>echo</code> 命令</h5><p><span style="color:red;">echo命令</span> 用于在 <code>shell</code> 中打印 <code>shell</code> 变量的值，或者直接输出指定的字符串。<code>linux</code> 的 <code>echo</code> 命令，在 <code>shell</code> 编程中极为常用，在终端下打印变量 <code>value</code> 的时候也是常常用到的，因此有必要了解下 <code>echo</code> 的用法，<code>echo</code> 命令的功能是在显示器上显示一段文字，一般起到一个提示的作用。 </p>
<h6 id="选项"><a href="#选项" class="headerlink" title="选项"></a>选项</h6><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">-e: 激活转义字符。</span><br></pre></td></tr></table></figure>
<p>使用 <code>-e</code> 选项时，若字符串中出现如下的字符，则特别加以处理，而不会将它当成一般文字输出：</p>
<ul>
<li><code>\a</code> 发出警告声；</li>
<li><code>\b</code> 删除前一个字符；</li>
<li><code>\c</code> 最后不加上换行符号；</li>
<li><code>\f</code> 换行但光标仍然停留在原来的位置；</li>
<li><code>\n</code> 换行且光标移至行首；</li>
<li><code>\r</code> 光标移至行首，但不换行；</li>
<li><code>\t</code> 插入 <code>tab</code>；</li>
<li><code>\v</code> 与 <code>\f</code> 相同；</li>
<li><code>\\</code> 插入 <code>\</code> 字符；</li>
<li><code>\nnn</code> 插入 <code>nnn(八进制)</code> 所代表的 <code>ASCII</code> 字符；</li>
</ul>
<h5 id="date-命令"><a href="#date-命令" class="headerlink" title="date 命令"></a><code>date</code> 命令</h5><p><span style="color:red;">date命令</span> 是显示或设置系统时间与日期。</p>
<p>很多 <code>shell</code> 脚本里面需要打印不同格式的日期或时间，以及要根据时间和日期执行操作。延时通常用于脚本执行过程中提供一段等待的时间。日期可以以多种格式去打印，也可以使用命令设置固定的格式。在类 <code>unix</code> 系统中，日期被存储为一个整数，其大小为自世界标准时间（<code>UTC</code>） <code>1970年1月1日0时0分0秒</code> 起流逝的秒数。</p>
<p><img src="http://localhost:4000/2021/01/28/linux%E5%85%A5%E9%97%A8%E5%91%BD%E4%BB%A4/001.png" alt></p>
<h5 id="reboot-命令"><a href="#reboot-命令" class="headerlink" title="reboot 命令"></a><code>reboot</code> 命令</h5><p><span style="color:red;">reboot命令</span> 用来重新启动正在运行的 <code>Linux</code> 操作系统。</p>
<h6 id="选项-1"><a href="#选项-1" class="headerlink" title="选项"></a>选项</h6><ul>
<li><code>-d</code> 重新开机时不把数据写入记录文件 <code>/var/tmp/wtmp</code>。本参数具有 <code>-n</code> 参数效果。</li>
<li><code>-f</code> 强制重新启动，不调用 <code>shutdown</code> 指令的功能；</li>
<li><code>-i</code> 在重开机之前，先关闭所有网络界面；</li>
<li><code>-n</code> 重开机之前不检查是否有未结束的程序；</li>
<li><code>-w</code> 仅作测试，并不真正将系统重新开机，只会把重开机的数据写入<code>/var/log</code> 目录下的 <code>wtmp</code> 记录文件。</li>
</ul>
<h5 id="poweroff-命令"><a href="#poweroff-命令" class="headerlink" title="poweroff 命令"></a><code>poweroff</code> 命令</h5><p><span style="color:red;">poweroff命令</span> 用来关闭计算机操作系统并且切断系统电源。</p>
<h5 id="wget-命令"><a href="#wget-命令" class="headerlink" title="wget 命令"></a><code>wget</code> 命令</h5><p><span style="color:red;">wget命令</span> 用来从指定的 <code>url</code> 下载文件。<code>wget</code> 非常稳定，它在带宽很窄的情况下和不稳定的网络中有很强的适应性，如果由于网络的原因下载失败，<code>wget</code> 会不断的尝试，直到整个文件下载完毕。如果是服务器打断下载过程，它会再次连到服务器上停止的地方继续下载。这对从那些限制了链接时间的服务器上下载<span style="color:red;">大文件</span>非常有用。</p>
<h6 id="使用-wget-断点续传"><a href="#使用-wget-断点续传" class="headerlink" title="使用 wget 断点续传"></a>使用 <code>wget</code> 断点续传</h6><p><code>wget -c http://www.linuxde.net/testfile.zip</code></p>
<h6 id="使用-wget-后台下载"><a href="#使用-wget-后台下载" class="headerlink" title="使用 wget 后台下载"></a>使用 <code>wget</code> 后台下载</h6><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">wget -b http://www.linuxde.net/testfile.zip</span><br><span class="line"></span><br><span class="line">Continuing in background, pid 1840.</span><br><span class="line">Output will be written to `wget-log&#x27;.</span><br></pre></td></tr></table></figure>
<p>可以使用命令 <code>tail -f wget-log</code> 来察看下载进度。</p>
<h6 id="伪装代理名称下载"><a href="#伪装代理名称下载" class="headerlink" title="伪装代理名称下载"></a>伪装代理名称下载</h6><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">wget --user-agent=&quot;Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16&quot; http://www.linuxde.net/testfile.zip</span><br></pre></td></tr></table></figure>
<p><span style="color:red;">有些网站能通过判断代理名称不是浏览器而拒绝你的下载请求。不过可以通过 <code>--user-agent</code> 参数伪装。</span></p>
<h6 id="测试下载链接"><a href="#测试下载链接" class="headerlink" title="测试下载链接"></a>测试下载链接</h6><p>当你打算进行定时下载，你应该在预定时间测试下载链接是否有效。我们可以增加 <code>--spider</code> 参数进行检查。</p>
<p><code>wget --spider URL</code></p>
<p>如果下载链接正确，则显示：</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">Spider mode enabled. Check if remote file exists.</span><br><span class="line">HTTP request sent, awaiting response... 200 OK</span><br><span class="line">Length: unspecified [text/html]</span><br><span class="line">Remote file exists and could contain further links,</span><br><span class="line">but recursion is disabled -- not retrieving.</span><br></pre></td></tr></table></figure>
<p>这保证了下载能在预定的时间进行，但当你给错了一个链接，将会显示如下错误：</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">wget --spider url</span><br><span class="line">Spider mode enabled. Check if remote file exists.</span><br><span class="line">HTTP request sent, awaiting response... 404 Not Found</span><br><span class="line">Remote file does not exist -- broken link!!!</span><br></pre></td></tr></table></figure>
<p>你可以在以下几种情况下使用 <code>--spider</code> 参数：</p>
<ul>
<li>定时下载之前进行检查</li>
<li>间隔检测网站是否可用</li>
<li>检查网站页面的死链接</li>
</ul>
<h6 id="增加重试次数"><a href="#增加重试次数" class="headerlink" title="增加重试次数"></a>增加重试次数</h6><p><code>wget --tries=40 URL</code></p>
<p>如果网络有问题或下载一个大文件也有可能失败。<code>wget</code> 默认重试 <code>20</code> 次连接下载文件。如果需要，可以使用 <code>--tries</code> 参数增加重试次数。</p>
<h6 id="下载多个文件"><a href="#下载多个文件" class="headerlink" title="下载多个文件"></a>下载多个文件</h6><p><code>wget -i fileList.txt</code></p>
<p>首先，保存一份下载链接文件：</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">cat &gt; fileList.txt</span><br><span class="line">url1</span><br><span class="line">url2</span><br><span class="line">url3</span><br><span class="line">url4</span><br></pre></td></tr></table></figure>
<p>接着使用这个文件和参数 <code>-i</code> 下载</p>
<h6 id="镜像网站"><a href="#镜像网站" class="headerlink" title="镜像网站"></a>镜像网站</h6><p><code>wget --mirror -p --convert-links -P ./LOCAL URL</code></p>
<p>下载整个网站到本地</p>
<ul>
<li><code>--miror</code>开户镜像下载。</li>
<li><code>-p</code>下载所有为了html页面显示正常的文件。</li>
<li><code>--convert-links</code>下载后，转换成本地的链接。</li>
<li><code>-P ./LOCAL</code>保存所有文件和目录到本地指定目录。</li>
</ul>

    </div>

    
    
    
        

  <div class="followme">
    <p>欢迎关注我的其它发布渠道</p>

    <div class="social-list">

        <div class="social-item">
          <a target="_blank" class="social-link" href="/atom.xml">
            <span class="icon">
              <i class="fa fa-rss"></i>
            </span>

            <span class="label">RSS</span>
          </a>
        </div>
    </div>
  </div>


      <footer class="post-footer">
          <div class="post-tags">
              <a href="/tags/linux/" rel="tag"># linux</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/2021/01/28/%E5%8A%9B%E6%89%A3-%E6%B1%821%E5%8A%A0%E5%88%B0n%E7%9A%84%E5%92%8C/" rel="prev" title="力扣-求1加到n的和">
      <i class="fa fa-chevron-left"></i> 力扣-求1加到n的和
    </a></div>
      <div class="post-nav-item">
    <a href="/2021/01/29/%E5%8A%9B%E6%89%A3-n%E4%B8%AA%E9%AA%B0%E5%AD%90%E7%9A%84%E7%82%B9%E6%95%B0/" rel="next" title="力扣-n个骰子的点数">
      力扣-n个骰子的点数 <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  



          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-4"><a class="nav-link" href="#%E5%B8%B8%E7%94%A8%E7%B3%BB%E7%BB%9F%E5%B7%A5%E4%BD%9C%E5%91%BD%E4%BB%A4"><span class="nav-number">1.</span> <span class="nav-text">常用系统工作命令</span></a><ol class="nav-child"><li class="nav-item nav-level-5"><a class="nav-link" href="#echo-%E5%91%BD%E4%BB%A4"><span class="nav-number">1.1.</span> <span class="nav-text">echo 命令</span></a><ol class="nav-child"><li class="nav-item nav-level-6"><a class="nav-link" href="#%E9%80%89%E9%A1%B9"><span class="nav-number">1.1.1.</span> <span class="nav-text">选项</span></a></li></ol></li><li class="nav-item nav-level-5"><a class="nav-link" href="#date-%E5%91%BD%E4%BB%A4"><span class="nav-number">1.2.</span> <span class="nav-text">date 命令</span></a></li><li class="nav-item nav-level-5"><a class="nav-link" href="#reboot-%E5%91%BD%E4%BB%A4"><span class="nav-number">1.3.</span> <span class="nav-text">reboot 命令</span></a><ol class="nav-child"><li class="nav-item nav-level-6"><a class="nav-link" href="#%E9%80%89%E9%A1%B9-1"><span class="nav-number">1.3.1.</span> <span class="nav-text">选项</span></a></li></ol></li><li class="nav-item nav-level-5"><a class="nav-link" href="#poweroff-%E5%91%BD%E4%BB%A4"><span class="nav-number">1.4.</span> <span class="nav-text">poweroff 命令</span></a></li><li class="nav-item nav-level-5"><a class="nav-link" href="#wget-%E5%91%BD%E4%BB%A4"><span class="nav-number">1.5.</span> <span class="nav-text">wget 命令</span></a><ol class="nav-child"><li class="nav-item nav-level-6"><a class="nav-link" href="#%E4%BD%BF%E7%94%A8-wget-%E6%96%AD%E7%82%B9%E7%BB%AD%E4%BC%A0"><span class="nav-number">1.5.1.</span> <span class="nav-text">使用 wget 断点续传</span></a></li><li class="nav-item nav-level-6"><a class="nav-link" href="#%E4%BD%BF%E7%94%A8-wget-%E5%90%8E%E5%8F%B0%E4%B8%8B%E8%BD%BD"><span class="nav-number">1.5.2.</span> <span class="nav-text">使用 wget 后台下载</span></a></li><li class="nav-item nav-level-6"><a class="nav-link" href="#%E4%BC%AA%E8%A3%85%E4%BB%A3%E7%90%86%E5%90%8D%E7%A7%B0%E4%B8%8B%E8%BD%BD"><span class="nav-number">1.5.3.</span> <span class="nav-text">伪装代理名称下载</span></a></li><li class="nav-item nav-level-6"><a class="nav-link" href="#%E6%B5%8B%E8%AF%95%E4%B8%8B%E8%BD%BD%E9%93%BE%E6%8E%A5"><span class="nav-number">1.5.4.</span> <span class="nav-text">测试下载链接</span></a></li><li class="nav-item nav-level-6"><a class="nav-link" href="#%E5%A2%9E%E5%8A%A0%E9%87%8D%E8%AF%95%E6%AC%A1%E6%95%B0"><span class="nav-number">1.5.5.</span> <span class="nav-text">增加重试次数</span></a></li><li class="nav-item nav-level-6"><a class="nav-link" href="#%E4%B8%8B%E8%BD%BD%E5%A4%9A%E4%B8%AA%E6%96%87%E4%BB%B6"><span class="nav-number">1.5.6.</span> <span class="nav-text">下载多个文件</span></a></li><li class="nav-item nav-level-6"><a class="nav-link" href="#%E9%95%9C%E5%83%8F%E7%BD%91%E7%AB%99"><span class="nav-number">1.5.7.</span> <span class="nav-text">镜像网站</span></a></li></ol></li></ol></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
  <p class="site-author-name" itemprop="name">田园隐士</p>
  <div class="site-description" itemprop="description">talk is cheap, show me the code</div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">347</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
        <span class="site-state-item-count">53</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
        <span class="site-state-item-count">115</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2022</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">田园隐士</span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-chart-area"></i>
    </span>
    <span title="站点总字数">587k</span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-coffee"></i>
    </span>
    <span title="站点阅读时长">8:53</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://muse.theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Muse</a> 强力驱动
  </div>

        
<div class="busuanzi-count">
  <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
    <span class="post-meta-item" id="busuanzi_container_site_uv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="fa fa-user"></i>
      </span>
      <span class="site-uv" title="总访客量">
        <span id="busuanzi_value_site_uv"></span>
      </span>
    </span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item" id="busuanzi_container_site_pv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="fa fa-eye"></i>
      </span>
      <span class="site-pv" title="总访问量">
        <span id="busuanzi_value_site_pv"></span>
      </span>
    </span>
</div>








      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/muse.js"></script>


<script src="/js/next-boot.js"></script>




  




  
<script src="/js/local-search.js"></script>













  

  

  

</body>
</html>
